<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var person={
				firstname:"小",
				lastname:"老虎",
				age:18,
				fullName11:function(){
					console.log(this)
					this.firstname+this.lastname
				},
			fullName1:()=>{
				console.log(this)
				this.firstname+this.lastname
			}
			}
			console.log(person.fullName1())
			console.log(person.fullName11())
			//动态添加
			person.address="你长得丑"
			person.fullName22=function(){
				console.log(this)
				return this.firstname+this.lastname+","+this.age;
			}
			person.fullName2=()=>{
				return person.firstname+person.lastname+","+person.age;
			}
			console.log(person.fullName2)
		</script>
	</body>
</html>
